package com.xxmw.transaction.model.app;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yamoo
 * @since 2020-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class VipPrice implements Serializable {

    private static final long serialVersionUID=1L;

    private Integer id;

    /**
     * 月数
     */
    private Integer monthCount;

    /**
     * USDT价格
     */
    private BigDecimal price;

    /**
     * 状态 1未上架  2已上架  0 删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private String createUser;


    /**
     * 状态枚举类
     */
    public enum Status {

        NOT_PUBLISTH(1, "未发布"),

        PUBLISHED(2, "已发布"),

        IS_DELETE(3, "已删除");

        private Integer value;
        private String msg;

        Status (Integer value, String msg) {
            this.value = value;
            this.msg = msg;
        }

        public Integer value () {
            return this.value;
        }

        public String msg () {
            return this.msg;
        }

    }

}
